package com.pandora.loan.home.web;

import com.pandora.loan.common.parameter.annotation.RequestData;
import com.pandora.loan.home.dto.request.*;
import com.pandora.loan.home.dto.response.*;
import com.pandora.loan.home.mongo.service.MongoActivityService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author developer
 */
@RestController
public class BusinessController {
    private Logger logger = LoggerFactory.getLogger(this.getClass());

    @Autowired
    private MongoActivityService mongoActivityService;

    /**
     * 发现
     */
    @RequestMapping(value = "activities", method = RequestMethod.GET)
    public LoanResponseNextInt doGetActivities(@RequestData NewsRequest req) {
        return mongoActivityService.doGetActivities(req);
    }

}
